#!/bin/csh


foreach v (04 23 25 17 13 16A 15 11 32) #add num of dipping lines here
awk 'BEGIN{FS=" "}{print $2,$3}' MGL1610MC$v.latlong > tmp1.txt
grdtrack tmp1.txt -G../North-Chile-MltBeam.grd -h > seafloor_$v.txt
rm tmp*
end
